]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search-display: Remove search result count
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 1 Mar 2011 23:19:18 +0000 (00:19 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 2 Mar 2011 22:12:35 +0000 (23:12 +0100)
Currently the total number of matches for a particular section is
displayed on the left of the section's header. While it made sense
in the old layout where it was close to the section's title, it is
now rather disconnected, and has been removed in current mockups.

https://bugzilla.gnome.org/show_bug.cgi?id=643632

js/ui/searchDisplay.js

index 7e9ba7a7d1eb7b1ef11efeef15d6460c454e5e18..ae7bce6a82fc6f26de6d634135b189d0deca8a4f 100644 (file)
@@ -249,12 +249,7 @@ SearchResults.prototype = {
                                           y_fill: true });
         titleButton.connect('clicked', Lang.bind(this, function () { this._onHeaderClicked(provider); }));
         providerBox.add(titleButton);
-        let titleBox = new St.BoxLayout();
-        titleButton.set_child(titleBox);
-        let title = new St.Label({ text: provider.title });
-        let count = new St.Label();
-        titleBox.add(title, { expand: true });
-        titleBox.add(count);
+        titleButton.set_child(new St.Label({ text: provider.title }));
 
         let resultDisplayBin = new St.Bin({ style_class: 'search-section-results',
                                             x_fill: true,
@@ -267,8 +262,7 @@ SearchResults.prototype = {
         resultDisplayBin.set_child(resultDisplay.actor);
 
         this._providerMeta.push({ actor: providerBox,
-                                  resultDisplay: resultDisplay,
-                                  count: count });
+                                  resultDisplay: resultDisplay });
         this._content.add(providerBox);
     },
 
@@ -322,7 +316,6 @@ SearchResults.prototype = {
             let meta = this._metaForProvider(provider);
             meta.actor.show();
             meta.resultDisplay.renderResults(providerResults, terms);
-            meta.count.set_text('' + providerResults.length);
         }
 
         if (this._selectedOpenSearchButton == -1)